package com.fnd.med.zsms.service.impl;

import javax.inject.Inject;
import javax.inject.Named;

import com.fnd.med.zsms.bean.AppVersion;
import com.fnd.med.zsms.dao.AppVersionDao;
import com.fnd.med.zsms.service.AppService;


@Named("appService")
public class AppServiceImpl implements AppService{
	 
	@Inject
	private AppVersionDao appVersionDao;
	
	@Override
	public AppVersion getLastVersion(String appName){
		return appVersionDao.findAppVersion(appName);
	}

	@Override
	public void SaveAppVersion(AppVersion appVersion) {
		appVersionDao.Save(appVersion);
		
	}

}
